//
//  HomeDeyialFooterView.m
//  Arts1
//
//  Created by apple on 15/10/11.
//  Copyright © 2015年 Arts1. All rights reserved.
//

#import "HomeDeyialFooterView.h"
#import "AllHeader.h"

@implementation HomeDeyialFooterView

- (instancetype)initWithFrame:(CGRect)frame
{
    if (self = [super initWithFrame:frame])
    {
        _txtFiled = [[UITextField alloc] initWithFrame:CGRectMake(10, 10, SCREEN_WIDTH - 85, 30)];
        _txtFiled.placeholder = @"编写评论";
        _txtFiled.font = [UIFont systemFontOfSize:13];
        _txtFiled.borderStyle = UITextBorderStyleRoundedRect;
        _txtFiled.layer.borderColor = kCustomColor(50, 50, 70, 1).CGColor;
        [self addSubview:_txtFiled];
        
        _btnCommint = [UIButton buttonWithType:UIButtonTypeCustom];
        [_btnCommint setTitleColor:[UIColor blackColor] forState:(UIControlStateNormal)];
        _btnCommint.titleLabel.font = [UIFont systemFontOfSize:14];
        _btnCommint.titleLabel.textColor = kCustomColor(50, 50, 70, 1);
        _btnCommint.frame = CGRectMake(_txtFiled.right + 10, _txtFiled.top, 55, _txtFiled.height);
        _btnCommint.layer.masksToBounds = YES;
        _btnCommint.layer.cornerRadius = 4;
        _btnCommint.layer.borderColor = kCustomColor(50, 50, 70, 1).CGColor;
        _btnCommint.layer.borderWidth = 1;
        [_btnCommint setTitle:@"发表" forState:(UIControlStateNormal)];
        [self addSubview:_btnCommint];
    }
    return self;
}

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
